#include<bits/stdc++.h>
using namespace std;
int main(){
freopen("detect.in","r",stdin);
freopen("detect.out","w",stdout);
int T,n,m,L,V;
cin>>T>>n>>m>>L>>V;
struct car{
int d,v,a;
};
car ca[n];
for(int i=0;i<n;i++){
    cin>>ca[i].d>>ca[i].v>>ca[i].a;
}
int m;
int ce[m];
for(int i=0;i<n;i++){
    cin>>ce[i];
}
int ans1=0;
cout<<ans1;
return 0;
}
